<template>
  <div class="content-1920">
    <viInvoiceCollection ref="reference1" :deptList="deptList" />
    <viPopupProfit
      ref="reference2"
      :deptList="deptList"
      :monthList="monthList"
    />
    <viPopupDoubleBar
      ref="reference22"
      :deptList="deptList"
      :monthList="monthList"
    />
    <viPopupProgress ref="reference3" :deptList="deptList" />
    <viPopupBalance
      :accoutTagList="accoutTagList"
      :deptList="deptList"
      ref="reference4"
    />
    <viPopupDetail ref="reference5" :deptList="deptList" />
    <div class="banner-1920">
      <div class="banner-1920-list">
        <div class="banner-1920-content">
          <viLine
            @enlarge="$refs.reference1.open()"
            @changeRadio="drawInvoiceCollection1"
            ref="invoiceCollection"
            :configurationInformation="
              configurationInformation.invoiceCollection
            "
          />
        </div>
      </div>
      <div class="banner-1920-list">
        <div class="banner-1920-content">
          <viDoubleBar
            @enlarge="$refs.reference22.open()"
            ref="income"
            :deptId="deptId"
              :projectId="projectId"
            :configurationInformation="configurationInformation.income"
          />
        </div>
      </div>
      <div class="banner-1920-list">
        <div class="banner-1920-content">
          <viProgress ref="progress" @enlarge="$refs.reference3.open()" />
        </div>
      </div>
    </div>
    <div class="banner-1920 banner-1920-center">
      <div class="banner-1920-plate">
        <div class="banner-1920-content">
          <viPlate :titleList="titleList" />
        </div>
      </div>
      <div class="banner-1920-map">
        <div class="banner-1920-content">
          <viMap
            @changeDept="changeDept"
            @changeProject="changeProject"
            :deptId.sync="deptId"
            :deptList="deptList"
            :mapList="mapList"
            :mapStyleJson="mapStyleJson"
            :projectList="projectList"
            :projectId.sync="projectId"
          />
        </div>
      </div>
    </div>
    <div class="banner-1920">
      <div class="banner-1920-list">
        <div class="banner-1920-content">
          <viBalance
            ref="balance"
            :accoutTagList="accoutTagList"
            :balanceList="balanceList"
            @enlarge="$refs.reference4.open(balanceList)"
          />
        </div>
      </div>
      <div class="banner-1920-list">
        <div class="banner-1920-content">
          <!-- <viBar
            @enlarge="$refs.reference2.open(2)"
            @changeRadio="drawAdvanceSelect"
            ref="advance"
            :configurationInformation="configurationInformation.advance"
          /> -->
          <viBar
            @enlarge="$refs.reference2.open(1)"
            @changeRadio="changeRadiodrawProfit"
            ref="profit"
            :configurationInformation="configurationInformation.profit"
          />
        </div>
      </div>
      <div class="banner-1920-list">
        <div class="banner-1920-content">
          <viDetailed
            :todayList="todayList"
            @enlarge="$refs.reference5.open()"
          />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import mix from "../mixins";
export default {
  name: "",
  mixins: [mix],
};
</script>

<style scoped lang="scss">
@function vw($n) {
  // @return ($n * 100vw/1920);
  @return ($n * 1px);
}

.content-1920 {
  width: 100%;
  min-height: calc(100vh - 84px);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  background: rgba(240, 242, 245, 1);
  padding: 2px 4px;

  * {
    margin: 0;
    // padding: 0;
    box-sizing: border-box;
  }

  .banner-1920 {
    flex-grow: 1;
    width: vw(359);
    display: flex;
    flex-direction: column;

    &-center {
      flex-grow: 1;
      width: vw(523);
    }

    &-list {
      flex-grow: 1;
      padding: vw(6);
      width: 100%;
      height: vw(280);
    }

    &-plate {
      flex-grow: 0.5;
      width: 100%;
      height: vw(280);
      padding: vw(6);
    }

    &-map {
      flex-grow: 1;
      padding: vw(6);
      width: 100%;
      height: vw(560);
    }

    &-content {
      width: 100%;
      height: 100%;
      background: rgba(255, 255, 255, 1);
      box-shadow: 0px 1px vw(3) rgba(0, 21, 41, 0.08);
      border-radius: vw(3);
    }
  }
}
</style>
